package com.lingxu.module.redList.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Title: RedListApply
 * @Package: com.lingxu.module.redList.entity
 * @Author: ysj闫世杰
 * @Email: 1105324813@qq.com
 * @Date: Created in 2023/6/19 16:31
 * @Description:
 * @Version: 1.0.0
 */
@Data
@TableName("T_RED_LIST_APPLY")
public class RedListApply {
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;
    private String recordId; //红名单记录ID
    private String name;    //姓名
    private String nameOld; //姓名旧
    private String idcard;  //身份证号码
    private String idcardOld;   //身份证号码旧
    private String cadresLev;   //干部级别
    private String cadresLevOld;//干部级别旧
    private String cityName;    //地区
    private String cityNameOld; //地区旧
    private String cityCode; //地区编码
    private String cityCodeOld; //地区编码旧
    private String workOrg;     //工作单位
    private String workOrgOld;  //工作单位旧
    private String createBy;    //创建人姓名
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern ="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern ="yyyy-MM-dd HH:mm:ss")
    private Date approvalTime;
    private String approvalBy;
    //审批状态（0：申请、1：通过、-1拒绝）
    private String approvalStatus;
    private String approvalRemark;
    private String source;  //1:新增，2:修改
}
